/*
 *************************************************************************
 *西瑞克斯研发管理系统
 *版 本: 1.0   
 *日 期：02/08/2012    
 *作 者： 王浩 QQ：873987060   
 *************************************************************************   
 */
package com.manager.workflow.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.manager.IBaseBean;
import com.manager.commons.DateUtil;
import com.manager.workflow.WorkFlowConstants;

/**
 * 
 * Description:YfThesis实体<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 02/08/2012
 * 
 */
public class BusWorkItem implements IBaseBean {

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;

	public BusWorkItem() {

	}
	
	@Transient
	private String id;
	
	@Transient
    private Long state;  //状态

	@Transient
	private String projectNo;
	
	@Transient
	private String projectName;

	@Transient
	private String projectOrg;

	@Transient
	private String projectType;
	
	@Transient
	private String actorId;
	
	@Transient
	private Date created_time;
	
	@Transient
	private String taskinstanceId;
	
	@Transient
	private Long bussId;
	
	@Transient
	private Long bussType;
	
	@Transient
	private String title;
	
	@Transient
	private String  processinstanceId;
	
	@Transient
	private Integer yfbussTaskType;

	@Transient
	private Integer count;
	
	@Transient
	private Date completeDate;
	
	@Transient
	private String rname;
	
	@Transient
	private String rname2;
	
	@Transient
	private String tel;
	
	public String getProcessinstanceId() {
		return processinstanceId;
	}

	public void setProcessinstanceId(String processinstanceId) {
		this.processinstanceId = processinstanceId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Long getState() {
		return state;
	}

	public void setState(Long state) {
		this.state = state;
	}

	public String getProjectNo() {
		return projectNo;
	}

	public void setProjectNo(String projectNo) {
		this.projectNo = projectNo;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectOrg() {
		return projectOrg;
	}

	public void setProjectOrg(String projectOrg) {
		this.projectOrg = projectOrg;
	}

	public String getProjectType() {
		return projectType;
	}

	public void setProjectType(String projectType) {
		this.projectType = projectType;
	}

	public String getActorId() {
		return actorId;
	}

	public void setActorId(String actorId) {
		this.actorId = actorId;
	}

	public Date getCreated_time() {
		return created_time;
	}

	public void setCreated_time(Date created_time) {
		this.created_time = created_time;
	}

	public String getTaskinstanceId() {
		return taskinstanceId;
	}

	public void setTaskinstanceId(String taskinstanceId) {
		this.taskinstanceId = taskinstanceId;
	}

	public Long getBussId() {
		return bussId;
	}

	public void setBussId(Long bussId) {
		this.bussId = bussId;
	}

	public Long getBussType() {
		return bussType;
	}

	public void setBussType(Long bussType) {
		this.bussType = bussType;
	}

	public String getTitle() {
		title = "";
		if(yfbussTaskType == WorkFlowConstants.BUSS_TASK_TYPE_REBACK){
			title = "   <font color=\"red\">打回修改</font>";
		}
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getYfbussTaskType() {
		return yfbussTaskType;
	}

	public void setYfbussTaskType(Integer yfbussTaskType) {
		this.yfbussTaskType = yfbussTaskType;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Date getCompleteDate() {
		return completeDate;
	}

	public void setCompleteDate(Date completeDate) {
		this.completeDate = completeDate;
	}

	public String getRname() {
		return rname;
	}

	public void setRname(String rname) {
		this.rname = rname;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getRname2() {
		return rname2;
	}

	public void setRname2(String rname2) {
		this.rname2 = rname2;
	}
	
}
